<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input type="hidden" name="type" value="{$type}">
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">文件:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="file" data-rule="required" id="c-local" class="form-control" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" id="faupload-local" class="btn btn-primary faupload" data-mimetype="csv,xls,xlsx" data-input-id="c-local" data-url="{:url('ajax/upload')}">
                <i class="fa fa-upload"></i> {:__("上传导入文件")}
            </button>
            <span class="text-red">*{:__("请按照模板填好批量上传")}，<a href="/导入模板.xlsx" target="_blank">{:__("点击下载模板")}</a></span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">品类:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cate_id" data-rule="required" data-source="select/category/index" class="form-control selectpage" data-primary-key="c_id"  data-field="c_title" name="cate_id" type="text" value="" placeholder="导入文件内如果每行都已设置正确分类名称,此处可忽略，否则导入失败">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?= $type == '1' ? '出库价格' : '入库价格' ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="price" type="text" value="" placeholder="导入文件内如果每行都已设置价格,此处可忽略，否则导入失败">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客户名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-in_uname" class="form-control" name="in_uname" type="text" value="" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客户电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-in_phone" class="form-control" name="in_phone" type="number" value="">
        </div>
    </div>
    <div class="form-group" style=" display: <?= $type == '2' ? 'hide' : 'none' ?>">
        <label class="control-label col-xs-12 col-sm-2">是否怕查:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-is_fear_query" class="form-control selectpicker" name="is_fear_query">
                {foreach name="isFearQueryList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-note" class="form-control" name="note" type="text">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
